﻿using System;

using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace MVCBootstrap.MongoDB {

	public class UserProfile {
		[BsonElement(UserProfileFieldNames.LastActivityDate)]
		public DateTime LastActivityDate { get; set; }
		[BsonElement(UserProfileFieldNames.LastUpdateDate)]
		public DateTime LastUpdateDate { get; set; }

		public BsonDocument Properties { get; set; }
	}

	internal static class UserProfileFieldNames {
		public const String LastActivityDate = "lad";
		public const String LastUpdateDate = "lud";
	}
}